package net.wanho.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 入库单表
 * @TableName in_store
 */
@TableName(value ="in_store")
@Data
@NoArgsConstructor
public class InStore {
    /**
     * 入库单id
     */
    @TableId(type = IdType.AUTO)
    private Integer insId;

    /**
     * 仓库id
     */
    private Integer storeId;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 入库数量
     */
    private Integer inNum;

    /**
     * 创建用户id
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 入库状态：0 否 1 是
     */
    private String isIn;

    public InStore(Integer storeId, Integer productId, Integer inNum, String isIn) {
        this.storeId = storeId;
        this.productId = productId;
        this.inNum = inNum;
        this.isIn = isIn;
    }
}